Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support multiple nodes in private queries #35

Merged
merged 3 commits into from
Dec 22, 2023

Conversation

mjfaga
Copy link
Collaborator

@mjfaga mjfaga commented Dec 21, 2023

Description

When multiple deeply nested objects are accessed inside a query, the mock server incorrectly resolves values using only one of the objects. This change ensures that all matching paths are merged together prior to mocking out data to ensure the full request is properly mocked regardless of how the query is composed.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@mjfaga mjfaga requested a review from a team as a code owner December 21, 2023 19:18
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c50042b) 94.40% compared to head (2576e03) 94.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   94.40%   94.74%   +0.34%     
==========================================
  Files          13       13              
  Lines         500      495       -5     
  Branches      152      150       -2     
==========================================
- Hits          472      469       -3     
+ Misses         28       26       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mjfaga mjfaga requested a review from finn-orsini as a code owner December 22, 2023 20:26
@mjfaga mjfaga merged commit 2afc498 into main Dec 22, 2023
7 checks passed
@mjfaga mjfaga deleted the mfaga-support-multiple-nodes-in-private-query branch December 22, 2023 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants